﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Text;
using iMES.Entity.SystemModels;

namespace iMES.Entity.DomainModels
{
    [Entity(TableCnName = "原料管理", TableName = "Rawmanagement")]
    /// <summary>
    /// 原料管理实体类
    /// </summary>
    public partial class Rawmanagement : SysEntity
    {
        /// <summary>
        ///原料管理主键
        /// </summary>
        [Key]
        [Display(Name = "原料管理主键")]
        [Column(TypeName = "uniqueidentifier")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public Guid RawmanagementId { get; set; }
        /// <summary>
        ///原料管理编号
        /// </summary>
        [Display(Name = "原料管理编号")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string RawmanagementBh { get; set; }
        /// <summary>
        ///原料管理名称
        /// </summary>
        [Display(Name = "原料管理名称")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string RawmanagementName { get; set; }
        /// <summary>
        ///分类名称
        /// </summary>
        [Display(Name = "分类名称")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string FlName { get; set; }
        /// <summary>
        ///尺寸名称
        /// </summary>

        [Display(Name = "尺寸名称")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string SizeName { get; set; }
        /// <summary>
        ///型号名称
        /// </summary>

        [Display(Name = "型号名称")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string XinghaoName { get; set; }
        /// <summary>
        ///属性名称
        /// </summary>

        [Display(Name = "属性名称")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string ShuxingName { get; set; }
        /// <summary>
        ///单位名称
        /// </summary>

        [Display(Name = "单位名称")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string DanWeiName { get; set; }
        /// <summary>
        ///库存数量
        /// </summary>
        [Display(Name = "库存数量")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string RawmanagementKCNum { get; set; }
        /// <summary>
        ///原料类型名称
        /// </summary>

        [Display(Name = "原料类型名称")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string LxName { get; set; }
        /// <summary>
        ///状态
        /// </summary>
        [Display(Name = "状态")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string RawmanagementState { get; set; }
        /// <summary>
        ///原料数量
        /// </summary>
        [Display(Name = "原料数量")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string RawmanagementYLNum { get; set; }
        /// <summary>
        ///报警天数
        /// </summary>
        [Display(Name = "报警天数")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string RawmanagementBJNum { get; set; }
        /// <summary>
        ///库存上限
        /// </summary>
        [Display(Name = "库存上限")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string RawmanagementSx { get; set; }
        /// <summary>
        ///库存下限
        /// </summary>
        [Display(Name = "库存下限")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string RawmanagementXx { get; set; }
        /// <summary>
        ///原料位置
        /// </summary>
        [Display(Name = "原料位置")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string RawmanagementWZ { get; set; }
        /// <summary>
        ///创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? RawmanagementCreateDate { get; set; }
        /// <summary>
        ///备注
        /// </summary>
        [Display(Name = "备注")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string RawmanagementDerc { get; set; }
        /// <summary>
        ///照片
        /// </summary>
        [Display(Name = "照片")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string RawmanagementPic { get; set; }
    }
}
